<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/**
 * 登陆
 */
Route::group('adminauth',[
    '/'=>['admin/Adminauth/Login',['method' => 'get']],
    'dologin'=>['admin/Adminauth/doLogin',['method' => 'post']],
    'index'=>['admin/Adminauth/index',['method' => 'get']],
    'loginOut'=>['admin/Adminauth/loginOut'],
]);


/**
 * 赞助商管理
 */
Route::group('sponsor',[
    'list'=>['admin/Admin/Sponsorlist',['method' => 'get']],
    'add/[:id]'=>['admin/Admin/addSponsor',['method' => 'get']],
    'doAddSponsor'=>['admin/Admin/doAddSponsor',['method' => 'post']],
    'uploadfiles'=>['admin/Admin/uploadFiles',['method' => 'post|get']],
    'delPic' => ['admin/Admin/delSponsorimg'],
    'audit/:id/:type' => ['admin/Admin/auditSponsor'],
]);

/**
 * 奖品管理
 */
Route::group('prize',[
    'list'=>['admin/Admin/Prizelist',['method' => 'get|post']],
    'add/[:id]'=>['admin/Admin/addPrize',['method' => 'get']],
    'doAddPrize'=>['admin/Admin/doAddPrize',['method' => 'post']],
    'delPic' => ['admin/Admin/delPrizeimg',['method' => 'post']],
    'delete/:id' => ['admin/Admin/delPrize'],
    'winners/:id' => ['admin/Admin/Prizewinners'],
    'winnerexport/:id' => ['admin/Admin/Winnerexport'],
    'prizeexport' => ['admin/Admin/Prizeexport'],
]);



/**
 * 加群小程序管理
 */
Route::group('wechatgroup',[
    'deps/[:depid]'=>['admin/Groupadmin/depList',['method' => 'get|post']],
    'depadd/[:id]/[:datatype]'=>['admin/Groupadmin/addDep',['method' => 'get']],
    'doAddDep'=>['admin/Groupadmin/doAddDep',['method' => 'post']],
    'deldep/:id' => ['admin/Groupadmin/delDep'],
    'citys'=>['admin/Groupadmin/cityList',['method' => 'get|post']],
    'cityoper'=>['admin/Groupadmin/cityOper',['method' => 'get|post']],
    'wechatlist'=>['admin/Groupadmin/wechatList',['method' => 'get|post']],
    'groupadd/[:id]'=>['admin/Groupadmin/groupDetail',['method' => 'get']],
    'uploadfiles'=>['admin/Groupadmin/uploadFiles',['method' => 'post|get']],
    'doAddgroup'=>['admin/Groupadmin/doAddgroup',['method' => 'post|get']],
    'datachange'=>['admin/Groupadmin/datachange',['method' => 'post|get']],
    'groupdel/:id' => ['admin/Groupadmin/delgroup'],
    'banners' => ['admin/Groupadmin/bannerList'],
    'banneradd/[:id]'=>['admin/Groupadmin/bannerDetail',['method' => 'get']],
    'doAddbanner'=>['admin/Groupadmin/doAddbanner',['method' => 'post|get']],
    'bannerdel/:id' => ['admin/Groupadmin/delbanner'],

]);

return [

];
